package com.wisdomparking.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.wisdomparking.bean.Rawdata;
import com.wisdomparking.dao.mapper.RawdataMapper;

@Component
public class RawdataDao implements RawdataMapper {
	
	@Autowired RawdataMapper rawdataMapper;
	
	@Transactional
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return rawdataMapper.deleteByPrimaryKey(id);
	}
	
	@Transactional
	@Override
	public int insert(Rawdata record) {
		return rawdataMapper.insert(record);
	}
	
	@Transactional
	@Override
	public int insertSelective(Rawdata record) {
		return rawdataMapper.insertSelective(record);
	}
	
	@Override
	public Rawdata selectByPrimaryKey(Integer id) {
		return rawdataMapper.selectByPrimaryKey(id);
	}
	
	@Override
	public Rawdata selectByIdentification(String identification){
		return rawdataMapper.selectByIdentification(identification);
	}
	
	@Transactional
	@Override
	public int updateByPrimaryKeySelective(Rawdata record) {
		return rawdataMapper.updateByPrimaryKeySelective(record);
	}
	
	@Transactional
	@Override
	public int updateByPrimaryKey(Rawdata record) {
		return rawdataMapper.updateByPrimaryKey(record);
	}
	
	@Override
	public List<Rawdata> getRawdataList(Map<String, Object> map) {
		return rawdataMapper.getRawdataList(map);
	}

	@Override
	public long getCountByRawdata(Map<String, Object> map) {
		return rawdataMapper.getCountByRawdata(map);
	}

}
